export default {
  namespaced: true,
  state: {
    /**
     * 选择的案件ID集合
     */
    caseIdList: [],
    /**
     * 选择联系人弹框打开状态
     */
    relationState: false,
    /**
     * 选中的发送对象
     */
    checkRelation: [],
  },
  mutations: {
    updateCaseIdList(state: any, data: any[]) {
      state.caseIdList = data
    },
    updateRelationState(state: any, data: boolean) {
      state.relationState = data
    },
    updateCheckRelation(state: any, data: any[]) {
      state.checkRelation = data
    }
  },
  actions: {
    updateCaseIdList({commit}: any, caseIdList: any[]) {
      commit('updateCaseIdList', caseIdList)
    },
    updateRelationState({commit}: any, state: boolean) {
      commit('updateRelationState', state)
    },
    updateCheckRelation({commit}: any, checkRelation: any[]) {
      commit('updateCheckRelation', checkRelation)
    }
  }
}
